<div class="brand_container">
    <ol>
    #{list items:brands, as:'brand'}
        <li>
            <div class="bentry">
                #{if brand.hasPicture}
                    <img class="lazy-image" src="@{Product.brandImage(brand.id, 1, 85, 40, 'png')}" alt="${brand.title}"/>
                #{/if}
                #{else}
                    <img class="default-image" src="@{Product.defaultImage(85, 40, 'png')}"
                         alt="${brand.title}"/>
                #{/else}

                <a href="@{Product.productList(params.getBrandFilter(brand.id))}">${brand.title}
                    (${brand.productsCount})
                </a>
            </div>
        </li>
    #{/list}
    </ol>
</div>